<template>
  <me-navbar class="header" title="商品详情">
    <i
      class="iconfont icon-back"
      slot="left"
      @click="goBack"
    ></i>
    <i class="iconfont icon-msg" slot="right"></i>
  </me-navbar>
</template>

<script>
  import MeNavbar from 'base/navbar';
  export default {
    name: 'ProductHeader',
    components: {
      MeNavbar
    },
    methods: {
      // API
      goBack() {
        this.$router.back();
      }
    }
  };
</script>

<style lang="scss" scoped>
  @import "~assets/scss/mixins";

  .header {
    color: #fff;
    &.mine-navbar {
      background-color: $header-bgc-translucent;
    }

    .iconfont {
      color: $icon-color-default;
      font-size: $icon-font-size;
    }
  }
</style>
